package com.zyl.Ecs.collector.client;

import com.zyl.Ecs.common.domain.data.bean.DataBean;
import com.zyl.Ecs.common.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: Ecs
 * @Package: com.zyl.Ecs.collector.client
 * @ClassName: RealTimeClient
 * @Description TODO
 * @Author 翟玉龙
 * @Date 2024/12/6-14:32
 */
@FeignClient(value = "ecs-realtime")
public interface RealTimeClient {

    /**
     * 上传实时数据
     *
     * @param dataEntities 数据实体
     * @return {@link Result }<{@link ? }>
     */
    @PostMapping("/realtime/data")
    Result<?> upload(@RequestBody List<DataBean> dataEntities);

}